package com.zmkm.project.dbserver.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.zmkm.project.dbserver.entity.StaffInfo;
import com.zmkm.project.dbserver.service.impl.StaffInfoServiceImpl;

/**
 * 
 * 〈一句话功能简述〉
 * 〈功能详细描述〉
 * 
 * @author siddpc
 * @version [版本号, 2019年4月6日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@RestController
@RequestMapping(value = "staffInfo")
public class StaffInfoController {
    @Autowired
    private StaffInfoServiceImpl staffInfoService;
    
    @RequestMapping(method = RequestMethod.GET, value = "getStaffInfo")
    public String getStaffInfo(@Param(value = "id") String id) {
        StaffInfo staffEntity = staffInfoService.getStaffById(id);
        return staffEntity.getPersonName();
    }
}
